﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="CapNhatSanPham.aspx.cs" Inherits="Admin_CapNhatSanPham" Title="Untitled Page" %>
<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
<h5>Menu</h5>
    <ul>
     <li class ="Selected"><a href="DanhSachSanPham.aspx">Danh sách Sản Phẩm</a></li>
       <li><a href="ThemMoiSanPham.aspx">Thêm mới Sản Phẩm</a></li>
    </ul>
    <ul class="Actions">
        <li><a href="DanhSachLoai.aspx">Danh sách Loại SP</a></li>
        <li><a href="ThemMoiLoaiSanPham.aspx">Thêm mới Loại SP</a></li>
    </ul>      
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div>
        <div class="title">
            Cập nhật sản phẩm
        </div>                  
        <div>
          <table width="100%" cellspacing="1" cellpadding="3" border="0" bgcolor="#cccccc"> 
                   <tr>
                    <td style="width:30%">Mã sản phẩm</td>
                    <td style="width:70%"><asp:TextBox ID="txt_MaSP" runat="server" ReadOnly="True"></asp:TextBox></td>
                </tr> 
                 <tr>
                    <td style="width:30%">Tên sản phẩm</td>
                    <td style="width:70%"><asp:TextBox ID="txt_TenSP" runat="server"></asp:TextBox></td>
                </tr> 
                <tr>
                    <td style="width:30%">Loại sản phẩm</td>
                    <td style="width:70%">
                        <asp:DropDownList CssClass="DropDownList" ID="ddl_LoaiSP" runat="server">
                        </asp:DropDownList></td>
                </tr>   
                 <tr>
                    <td style="width:30%" rowspan="2">Hình minh họa</td>
                    <td style="width:70%">
                        
                        <div style="width:100%;">
            <div style="display:table-cell; width:85%;float:left;">
               <span style="font-size: 12px">Danh sách hình ảnh</span>                
            </div>
            
            <div class="addnewrow" style="float: right; width: 10%">             
                <asp:LinkButton ID="LinkButton1" runat="server" OnClick="lbt_Xoa_Click" Font-Bold="True" ForeColor="Red">Xóa</asp:LinkButton>
            </div>      
        </div>                      
                        <div style="padding-top:0px;">
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                <thead>
                    <tr class="listtableheader">
                        <th>STT </th>
                        <th>Hình ảnh</th>
                        <th><input id="cb_All" type="checkbox" onclick="CheckAll(1);" /><a href="javascript:CheckAll(2)">Chọn hết</a></th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td>
                    <asp:Literal ID="lit_IdHinh" runat="server"></asp:Literal></td>
                <td>
                    <asp:Image ID ="img_HinhAnh" runat ="server" /></td>
                     <asp:HiddenField ID="hf_tenhinh" runat="server" />
                 <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" runat="server" />
                </td>
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater>  
        <div style="float:left;">               
               <cc1:PagerV2_8 ID="PagerV2_8_1" runat="server"  OnCommand="pager_Command" ></cc1:PagerV2_8> 
            </div>
                    </td>
                </tr>   
                  <tr>
                    <td style="width:70%">
                        &nbsp;<asp:FileUpload ID="fu_up_hinh" runat="server" class="multi" /></td>
                </tr>   
                   <tr>
                    <td style="width:30%">
                        Giá gốc</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_GiaGoc" runat="server"></asp:TextBox>
                    </td>
                </tr>   
              <tr>
                  <td style="width: 30%; height: 21px">
                      Giá bán</td>
                  <td style="width: 70%; height: 21px">
                      <asp:TextBox ID="txt_GiaBan" runat="server"></asp:TextBox></td>
              </tr>
                   <tr>
                    <td style="width:30%">Số lượng</td>
                    <td style="width:70%">
                        <asp:TextBox ID="txt_SoLuong" runat="server"></asp:TextBox>
                    </td>
                </tr> 
            
                <tr>
                    <td style="width:30%">Mô tả</td>
                    <td style="width:70%">
                        <FTB:FreeTextBox ID="txt_MoTa" runat="server">
                        </FTB:FreeTextBox>
                    </td>
                </tr>   
                <tr>
                    <td style="width:30%"></td>
                    <td style="width:70%"><asp:Button ID="btn_Add" runat="server" Text="Cập nhật sản phẩm" OnClick="btn_Add_Click"/></td>
                </tr>            
            </table>
        </div>
 </div>
 
</asp:Content>

